/*
    该文件专门为Count组件生成action对象
 */
import {INCREMENT, DECREMENT} from "./constant"
// function crateIncrementAction(data) {
//     return {type: 'increment', data};
// }
//
// function crateDecrementAction(data) {
//     return {type: 'decrement', data};
// }


export const createIncrementAction = data => ({type: INCREMENT, data})
export const crateDecrementAction = data => ({type: DECREMENT, data})
